﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Campus.Main.Basic;
using cpmntctrl;

namespace Campus.Main.SuperUser
{
    public partial class AllListForSuperUser : BolumInsertForm 
    {
        public AllListForSuperUser()
        {
            InitializeComponent();
        }
        protected override void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex == -1 || e.ColumnIndex == -1)
                return;
            List<string> data = new List<string>();
            ControlComponent.AddToList(data, dataGridView1, e, 0);
            Kayit f = new KayitForSuperUser(data[0]);
            f.FormClosed += child_FormClosed;
            Hide();
            f.ShowDialog();
        }
    }
}
